package org.si.graphics;

import java.awt.Component;
import java.awt.Paint;

/**
 * This PaintProvider always returns the foreground colour of the given component.
 *
 * @author Matt Nathan
 */
public class ForegroundPaintProvider implements PaintProvider {

    @Override
    public Paint get(Component c, int x, int y, int width, int height) {
        return c.getForeground();
    }
}
